Tack.Condition.StateOn = new Class({
	Extends: Tack.Condition,

	args: { state: 'text' },
	type: 'StateOn',

	initialize: function (state) {
		this.state = state;
	},

	_evaluate: function (player, eventArgs) {
		return !!player.state.get(this.state);
	}
});
